<template>
  <component v-model.trim="data[item.key]" :is="item.tag" v-bind="item.conf">
    <a-radio :value="option.value" v-for="option of item.conf?.radioOption" :key="option.value">
      {{ option.label }}
    </a-radio>
    <a-select-option v-for="option of item.conf?.selectOption" :key="option.value" :value="option.value">
      {{ option.label }}
    </a-select-option>
  </component>
</template>

<script>
  export default {
    name: 'AComponent',
    props: {
      item: {},
      data: {},
    },
  };
</script>

<style scoped></style>
